<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>个人标签片</title>
        <link rel="stylesheet" th:href="../../../static/layui/css/layui.css"/>
        <link rel="stylesheet" type="text/css" th:href="../../../static/layui/css/common.css"/>

    </head>
    <body th:fragment="usertip(user)">
        <!-- 左侧个人标签页 -->
        <div class="user-tip">
            <div class="header2">
                <img src="../../../static/layui/images/head-pic/head5.jpg"
                     th:src="${user.getImg()!=null? user.getImg():'/layui/images/head-pic/head5.jpg'}"/>
                <span th:text="${user.name}?:用户名">用户名</span>
                <a th:href="@{'/User/userexh/'+${user.uid}}">TA的主页</a>
                <input th:id="userid" type="hidden" th:value="${user.id}">
            </div>
            <div class="right-info">
                <ul>
                    <li>
                        <span>博客</span>
                        <span th:text="${user.blogNumber!=null? user.blogNumber:'0'}">0</span>
                    </li>
                    <li>
                        <span>粉丝</span>
                        <span th:text="${user.fans!=null? user.fans:'0'}">0</span>
                    </li>
                    <li>
                        <span>关注</span>
                        <span th:text="${user.follows!=null? user.follows:'0'}">0</span>
                    </li>
                    <li>
                        <span>获赞</span>
                        <span th:text="${user.zanNumber!=null? user.zanNumber:'0'}">2</span>
                    </li>
                    <!--<li>-->
                    <!--<span>访问</span>-->
                    <!--<span>2</span>-->
                    <!--</li>-->
                </ul>
            </div>
            <div class="right-desc">
                <span>个性签名:</span>
                <span th:text="${user.autograph?:'这个人很懒什么都没有留下。'}">这个人很懒什么都没有留下。</span>
            </div>
            <button id="follow" th:value="${user.uid}">关注</button>
        </div>
    <script type="text/jscript" th:src="@{/layui/layui.js}"></script>
    </body>
</html>
